﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DunLibrary.Core;
using DunLibrary.Base;
using DunLibrary.Dun;

namespace DunLibrary.CreditCard
{
    public class CreditCard : Item,ICreditCard
    {
        public virtual Client.Company Bank { get; set; }

        public virtual Cardholder Holder { get; set; }

        public virtual string CardType { get; set; }

        public virtual string DisplayNumber 
        {
            get
            {
                return Number.Substring(0, 5) + "****" + Number.Substring(9);
            }
        }

        public virtual string MainAddSymbol { get; set; }

        public virtual string AccountNo { get; set; }//帐号

        public virtual string CardStatus { get; set; }

        public virtual DateTime GrantTime { get; set; }

        public virtual string DelayLevel { get; set; }

        public virtual double TotalReturnAmount { get; set; }

        //public virtual IList<CardholderContact> Contacts { get; set; }

        //public virtual IList<RelationPerson> RelationPersons { get; set; }

        public virtual IList<ReturnRecord> ReturnRecords { get; set; }

        public virtual DateTime ImportTime { get; set; }
    }
}
